//
//  UIBarButtonItem+XHBarButton.h
//  BaiSiBuDeJie
//
//  Created by xiaohui on 16/6/4.
//  Copyright © 2016年 xiaohui. All rights reserved.
//

enum UIBarButtonItemType{
    UIBarButtonItemTypeHorizon,
    UIBarButtonItemTypeRect
};
typedef enum UIBarButtonItemType  UIBarButtonItemType;
#import <UIKit/UIKit.h>

@interface UIBarButtonItem (XHBarButton)

+(UIBarButtonItem *)barButtonWithImage:(UIImage *)image highlightedImage:(UIImage *)highlightedImage addTarget:(nullable id)target action:(_Nonnull SEL)action forControlEvents:(UIControlEvents)controlEvents;

+(UIBarButtonItem *)barButtonWithImage:(UIImage  *)image highImage:(UIImage *_Nonnull)highImage type:(UIBarButtonItemType)type target:( nullable id)target action:(_Nonnull SEL)action forControlEvents:(UIControlEvents)controlEvents;

+(UIBarButtonItem *_Nonnull)creatleftBarButtonItemWithSys:(NSString *_Nonnull)sys;

@end
